Skip to content

USHIFT-1380: Consider filepath as not existing even if exists but is empty#1982

Merged
openshift-merge-robot merged 1 commit into
openshift:mainfrom
pmtk:1380-check-file-size-or-dir-files
Jun 30, 2023
Merged

USHIFT-1380: Consider filepath as not existing even if exists but is empty#1982
openshift-merge-robot merged 1 commit into
openshift:mainfrom
pmtk:1380-check-file-size-or-dir-files

Conversation

@pmtk

@pmtk pmtk commented Jun 30, 2023

Copy link
Copy Markdown
Member

No description provided.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 30, 2023
@openshift-ci-robot

openshift-ci-robot commented Jun 30, 2023

Copy link
Copy Markdown

@pmtk: This pull request references USHIFT-1380 which is a valid jira issue.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci Bot requested review from jerpeter1 and jogeo June 30, 2023 12:31
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 30, 2023
@pmtk

pmtk commented Jun 30, 2023

Copy link
Copy Markdown
Member Author

/retest

@dhellmann

Copy link
Copy Markdown
Contributor

The code looks ok, but the commit could use more of a description so I can understand the intent.

Before the prerun, MicroShift creates a .nodename file in the data
directory. To not interpret existence of the data dir with just
the .nodename as "MicroShift already ran on this device",
we need a more thorough check.

Extending this philosophy to files, will allow us in testing to
create empty health.json that will be considered as "no health info"
but writable by green or red script after adding immutable attr
too backups directory.
@pmtk pmtk force-pushed the 1380-check-file-size-or-dir-files branch from 77ad565 to d937ae1 Compare June 30, 2023 16:59
@dhellmann

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 30, 2023
@openshift-ci

openshift-ci Bot commented Jun 30, 2023

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhellmann, pmtk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants